package com.example.mapper;

import com.example.entity.PsUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 伍彦端
 * @since 2024-04-27
 */
public interface PsUserMapper extends BaseMapper<PsUser> {
    @Select("UPDATE FROM ps_user SET  userPassword={users.userPassword} OR sex={users.sex} OR age={users.age} " +
            "OR entryDate={users.entryDate} OR dimissionDate={users.dimissionDate} OR phoneTel={users.phoneTel} \n" +
            "OR email={users.email} WHERE userPassword={users.userPassword} AND userCode={users.userCode} AND  username={users.username}")
    public boolean updateuser(@Param("users") PsUser users);
}
